-- card: 45127 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 44309 -- name: Workbook Demo ----- HyperTalk script ----- on opencard --put empty into fld text end opencard -- part 8 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=330 top=28 right=47 bottom=496 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: New Button ----- HyperTalk script ----- on mouseWithin put "This area indicates the current exercise." into cd fld text end mouseWithin -- part 10 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=2 top=134 right=313 bottom=257 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: New Button ----- HyperTalk script ----- on mouseWithin put "This is your work area. Type into this field to record your work." into cd fld text end mouseWithin -- part 11 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=257 top=135 right=312 bottom=509 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Show Solution ----- HyperTalk script ----- on mouseWithin put "This area shows the solution to the exercise. The 'Show Solution' button below controls this area." into cd fld text end mouseWithin -- part 13 (field) -- low flags: 01 -- high flags: 2004 -- rect: left=169 top=106 right=165 bottom=406 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 8192 -- line height: 16 -- part name: text -- part 14 (button) -- low flags: 00 -- high flags: A004 -- rect: left=398 top=318 right=341 bottom=440 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 8192 -- line height: 16 -- part name: Hints ----- HyperTalk script ----- on mouseUp if the visible of fld Hints is true then hide fld Hints else show fld Hints end if end mouseUp on mousewithin put "Press this button to receive help doing the question." into cd fld text end mousewithin -- part 15 (button) -- low flags: 00 -- high flags: A004 -- rect: left=299 top=318 right=341 bottom=399 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 8192 -- line height: 16 -- part name: Show Solution ----- HyperTalk script ----- on mouseUp get the short name of me put it into tester if word 1 of tester = "Hide" then hide fld Solution set the name of me to "Show Solution" else show fld Solution set the name of me to "Hide Solution" end if end mouseUp on mousewithin put "Press this button to show and hide the answer." into cd fld text end mouseWithin -- part 16 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=10 top=312 right=342 bottom=45 -- title width / last selected line: 0 -- icon id / first selected line: 24539 / 24539 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Home ----- HyperTalk script ----- on mouseUp go home end mouseUp on mousewithin put "Press this button to go to the Home stack." into cd fld text end mousewithin -- part 17 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=47 top=313 right=342 bottom=85 -- title width / last selected line: 0 -- icon id / first selected line: 1141 / 1141 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Back to periodic ----- HyperTalk script ----- on mouseUp visual effect dissolve set cursor to 4 go to card ID 12855 end mouseUp on mousewithin put "Press this button to go to the Periodic Table." into cd fld text end mousewithin -- part 18 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=125 top=312 right=342 bottom=158 -- title width / last selected line: 0 -- icon id / first selected line: 17400 / 17400 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Exercises ----- HyperTalk script ----- on mouseUp visual effect dissolve go to card "Workbook" end mouseUp on mousewithin put "Press this button to go to the beginning of the Workbook." into cd fld text end mousewithin -- part 19 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=87 top=312 right=341 bottom=122 -- title width / last selected line: 0 -- icon id / first selected line: 5081 / 5081 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Print ----- HyperTalk script ----- on mouseUp answer "Print Card or Report ?" with "Card" or "Report" or "Cancel" if it is "Cancel" then exit mouseup else if it is "Report" then domenu Print Report... else domenu Print Card end if end if end mouseUp on mousewithin put "Press this button to print a card or report." into cd fld text end mousewithin -- part 20 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=2 top=68 right=132 bottom=508 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Show Solution ----- HyperTalk script ----- on mouseWithin put "This area shows the current question." into cd fld text end mouseWithin -- part 21 (button) -- low flags: 00 -- high flags: 0001 -- rect: left=249 top=315 right=338 bottom=276 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Next ----- HyperTalk script ----- on mouseUp end mouseUp -- part contents for background part 2 ----- text ----- Convert the following: 4 gigabytes = ? kilobytes -- part contents for background part 9 ----- text ----- As in the last problem, bytes are a unit of measurement to measure memory in a computer. To solve this question, the relationship between a kilobyte and a gigabyte must be solved; more precisely, the relationship between the kilo and giga factors. Kilo is 10 3 and giga is 10 9. That is a difference of six powers of 10 or 10 6. 1 x 10 9 giga _____________ = 1 x 10 6 1 x 10 3 kilo From this ratio, we can see that there is a difference of six powers of 10, and since giga is larger than kilo, there must be 100,000 (six places) kilobytes for every gigabyte. 1 gigabyte = 100,000 kilobytes Now the second ratio of comparison can be set up for this question: 1 gigabyte 4 gigabytes ___________ = ____________ 100,000 kilobytes x kilobytes Cross multiply and solve for x: x = (100,000) (4) x = 400,000 kilobytes 4 gigabytes = 400,000 kilobytes -- part contents for background part 10 ----- text ----- Bytes are a unit of measurement to measure the amount of memory in a computer. Check the Chem 101 stack to find out that kilo is 10 3 and giga is 10 9. -- part contents for background part 8 ----- text ----- How to use... -- part contents for card part 13 ----- text ----- This area shows the solution to the exercise. The 'Show Solution' button below controls this area.